<form class="layui-form"  id="roleDetailForm" style="padding: 20px;" action="">

    <input class="hidden" style="display: none;" name="roleId" th:value="${role.roleId}">

    <div class="layui-form-item">
        <label class="layui-form-label">角色名称 :</label>
        <div class="layui-input-block">
            <input type="text" th:value="${role.name}" name="name"  lay-verify="required" placeholder="请输入"  class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">角色描述 :</label>
        <div class="layui-input-block">
                <input type="text" name="description" th:value="${role.description}"  placeholder="请输入"  class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" pane="">
        <label class="layui-form-label">是否可用</label>
        <div class="layui-input-block">
            <input  type="checkbox" th:checked="${role.status == 1}"  value="1" name="status" lay-skin="switch" title="开关">
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="editSubmit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>


